﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<div class="art-layout-cell art-content">
<div class="art-box art-post">
    <div class="art-box-body art-post-body">
<div class="art-post-inner art-article">
                                <h2 class="art-postheader">Mua Sắm
                                </h2>
                                                <div class="art-postcontent">
                                                     
<div class="art-content-layout">
    <c:set var="n" value="0" />
    <c:forEach var="item" items="${product_list}">
        <%--<c:out value="n=${n}"/>
<c:out value="n%2=${n%2}"/> --%>
        <c:if test="${n%2==0}">
                   <div class="art-content-layout-row">
    
              </c:if>
    <div class="art-layout-cell" style="width: 50%;">
        <a href='<c:out value="product-details.do?id=${item.id}"/>' target="_parent"><img src="images/<c:out value="${item.hinhAnh}"/>" alt="product" /></a>
              <p><c:out value="${item.tenSanPham}"/></p>
              <p><c:out value="${item.moTaNgan}"/></p>
              <p class='price'>Gía: <c:out value="${item.giaBan}"/> VND</p>
                <a href='<c:out value="product-details.do?id=${item.id}"/>'>Detail</a> | <a href='<c:out value="cart.do?action=add&id=${item.id}" />'>Buy Now</a>
    </div><c:set var="n" value="${n+1}"/>
                <c:if test="${n%2==0}">
    </div>
              </c:if>
                
               
                </c:forEach>
</div>
 <!--                                                 
<div class="art-content-layout">
    <div class="art-content-layout-row">
    <div class="art-layout-cell" style="width: 50%;">
        <p><br /></p>
    </div><div class="art-layout-cell" style="width: 50%;">
        <p><br /></p>
    </div>
    </div>
</div>
-->
  
                </div>
                <div class="cleared"></div>
                </div>

		<div class="cleared"></div>
    </div>
</div>

                          <div class="cleared"></div>
                        </div>